<?php
// This file contains all of the global settings required for Warmath. Eventually
// there will be an installation script to help autofill this information in.


/* ------- Replaces load.php ------- */

define('PUN_ROOT', '@@directory_containing_punbb@@');
require(PUN_ROOT.'include/common.php'); 	// -- This is used only for db connection
						// see below for db stuff used now.
require(PUN_ROOT.'include/parser.php');		// -- Used to parse the [item][/item] BB codes.
						// working on removing this reliance.

/* ------- Removed from verify.php  ------- */
$warmath_codeclass = "Beta";
$warmath_version = "20080725";

//$wm_config["gurl"] = "";

/* ------- Replaces config-default.php ------- */
$wm_config["title"] = "Warmath";
$wm_config["style"] = "lib/universal2.css";
$wm_config["favicon"] = "images/favicon.ico";


function wm_navbar() {
?>
<ul class="menu">
<!--
<li class="page_item"><a href="http://subcreation.net">Home</a></li>
<li class="page_item"><a href="http://blogs.subcreation.net/" title="Blogs">Blogs</a></li>
<li class="page_item"><a href="http://forums.subcreation.net/" title="Forums">Forums</a></li>
<li class="page_item"><a href="http://wiki.subcreation.net/" title="Wiki">Wiki</a></li>
<li class="page_item"><a href="http://humility.subcreation.net/" title="Humility">Humility</a></li>

<li class="current_page_item"><a href="" title="Warmath">Warmath</a></li>
-->
</ul>

<?php
}

function wm_footer() {
?>
<p id="footer"><small>
   Warmath: Better DKP through intelligence.<br>
</small></p>
<?
}


/* ------- Replaces db.php ------- */

// Database Settings 
$wm_config["dbname"] = '@@database_name@@';
$wm_config["dbhost"] = '@@database_host@@';
$wm_config["dbuser"] = '@@database_user@@';
$wm_config["dbpass"] = '@@database_password@@';
$wm_config["dbprefix"] = 'wm_';

//include_once('mysql.php');
//$db = DBLayer($wm_config["dbhost"], $wm_config["dbuser"], $wm_config["dbpass"], $wm_config["dbname"], $wm_config["dbprefix"]);

?>
